<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<%@ include file="./common/session.jsp"%>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>Test Page</title>
<%@ include file="./common/css.jsp"%>
<%@ include file="./common/scripts.jsp"%>
</head>
<body>
<%@ include file="./layout/page-content-begin.jsp"%>
<%@ include file="./layout/header-begin.jsp"%>
<%@ include file="./layout/header-end.jsp"%>
<%@ include file="./layout/body-begin.jsp"%>
<input type="button" value="Test2" id="userInfo" />
<div id="result"></div>
<%@ include file="./layout/body-end.jsp"%>
<%@ include file="./layout/footer-begin.jsp"%>
<%@ include file="./layout/footer-end.jsp"%>
<%@ include file="./layout/page-content-end.jsp"%>
<script type="text/javascript">
    $(function(){
    	$('#userInfo').click(
    			function(){
    				$.post('user',{},function(json){
    					var $result = $('#result').empty();
    					for(var i=0;i<json.length;i++){
    						var item = json[i];
    						$result.append('<div>'+item.name+'</div>');
    					}
    				},"json");	
    			});
    });
</script>
</body>
</html>